//
//  TFSClientNotification.swift
//  GitTFGUI
//
//  Created by Samuel Richard Magny on 15-10-02.
//  Copyright © 2015 Samuel Richard Magny. All rights reserved.
//

import Cocoa
import SwiftTools

public class TFSClientNotification: BroadcastNotification {

    public enum NotificationType:Int, CustomStringConvertible {
        case None
        case WorkingDirectoryChanged
        case CommandDidStart
        case CommandDidStoped
        case CommandErrorOccured
        case ProgressInfo
        
        public var description : String {
            switch self {
                case .None: return "None";
                case .WorkingDirectoryChanged: return "WorkDirChanged";
                case .CommandDidStart: return "CommandDidStart";
                case .CommandDidStoped: return "CommandDidStoped";
                case .CommandErrorOccured: return "CommandErrorOccured";
                case .ProgressInfo: return "CommandProgressInfo";
            }
        }
    }
    
    public var notificationType:NotificationType = NotificationType.None
    
    
    public init(sender: AnyObject?, type:NotificationType)
    {
        notificationType = type;
        super.init(sender: sender, identifier: type.description)
    }
}
